Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the order of the response (message followed by data) #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kausri
Copy link

@kausri kausri commented May 21, 2019

Updated the README to reflect the correct order of the response :)

@@ -6,8 +6,8 @@ All responses will have the form

```json
{
"data": "Mixed type holding the content of the response",
"message": "Description of what happened"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JSON data does not have guaranteed order for a keys

Also the comma is on the wrong one so the syntax is invalid now.

@@ -58,6 +58,7 @@ If a device with the given identifier already exists, the existing device will b
**Response**

- `201 Created` on success
- `400 BAD REQUEST` on plure due to incorrect data

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's a plure?

Also "Bad Request" would be better to match the case of the 201.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants